package model;

import java.util.Set;
import java.util.HashSet;

public class Console {

	private String name;
	private String romPath;
    private String ico;
    private String extension;
    private String emulatorPath;
	private Set<Game> games= new HashSet<Game>();


    public Console(String name,String romPath,String ico,String extension,String emulatorPath){
        this.name = name;
        this.romPath = romPath;
        this.ico = ico;
        this.extension = extension;
        this.emulatorPath = emulatorPath;
    }
    public void addGame(final Game game){
          games.add(game);
    }

    public String getRomPath() {
        return romPath;
    }

    public void setRomPath(String romPath) {
        this.romPath = romPath;
    }

    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public String getEmulatorPath() {
        return emulatorPath;
    }

    public void setEmulatorPath(String emulatorPath) {
        this.emulatorPath = emulatorPath;
    }

    public Set<Game> getGames() {
        return games;
    }

    public void setGames(Set<Game> games) {
        this.games = games;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Console{" +
                "name='" + name + '\'' +
                ", romPath='" + romPath + '\'' +
                ", ico='" + ico + '\'' +
                ", extension='" + extension + '\'' +
                ", emulatorPath='" + emulatorPath + '\'' +
                '}';
    }
}
